#include "CLocationObject.h"
namespace game
{
	namespace scene
	{

		//! Default constructor
		CLocationObject::CLocationObject(SLocationObjectEntry* entry, u32 id, irr::scene::ISceneManager* sceneManager, video::IVideoHandler* videoHandler) 
			:	ILocationObject(entry, sceneManager, videoHandler)
		{
		}

		//! Destructor
		CLocationObject::~CLocationObject()
		{

		}

		void CLocationObject::addChild(IGameObject* value)
		{
			if(!value)
				return;

			switch(value->getType())
			{
			case EGO_LOCATION:
				{
					ILocationObject* child = (ILocationObject*)value;
					this->ChildLocations.insert(child->Name, child);
					
					break;
				}
			default:
				{
					break;
				}
			}
		}


		//! Sets player current position
		void CLocationObject::setPlayerPosition(irr::core::vector3df value)
		{

		}

		//! Gets player current position
		irr::core::vector3df CLocationObject::getPlayerPosition()
		{
			return irr::core::vector3df(0,0,0);
		}

		void CLocationObject::addToScene()
		{

		}
	}

}
